﻿namespace Harness.Recording
{
    using System.Collections.Generic;

    public class CommandRecordingEventArgs
    {
        #region Constants
        #endregion

        #region Fields
        #endregion

        #region Constructors

        public CommandRecordingEventArgs(string source)
        {
            this.Source = source;
            this.Command = string.Empty;
            this.Arguments = new List<string>();
        }

        public CommandRecordingEventArgs(string source, string cmd, IEnumerable<string> args)
        {
            this.Source = source;
            this.Command = cmd;
            this.Arguments = args;
        }

        #endregion

        #region Destructors
        #endregion

        #region Delegates
        #endregion

        #region Events
        #endregion

        #region Enums
        #endregion

        #region Interfaces
        #endregion

        #region Properties

        public string Command
        {
            get;
            private set;
        }

        public IEnumerable<string> Arguments
        {
            get;
            private set;
        }

        public string Source
        {
            get;
            private set;
        }

        #endregion

        #region Indexers
        #endregion

        #region Public Methods

        public override string ToString()
        {
            return string.Format(
                "{0}\t{1}",
                this.Command,
                string.Join("\t", this.Arguments));
        }

        #endregion

        #region Private Methods
        #endregion

        #region Structs
        #endregion

        #region Classes
        #endregion
    }
}
